<template>
  <div>
    <div v-show="projectmemoData.length==0" class="nolist">暂无数据...</div>
    <div class="txtprojectmemo">
      <Input v-model="projectmemo" placeholder="请输入" style="width: 95%;"></Input>
      <div>
        <Button type="primary" class="pull-right" @click="saveProjectMemo">
          <Icon type="plus-round"></Icon>
        </Button>
      </div>
    </div>np
    <div class="projectlistbox">
      <div class="projectlist" v-for="(item,index) in projectmemoData" :key="index">
        <div style="font-size:12px;font-weight:bold;"><span>{{item.createby}}</span>&nbsp;&nbsp;<span>{{item.createdate}}</span></div>
        <div v-show="!item.isedit">{{item.projectmemo}}</div>
        <div v-show="item.isedit">
          <Input type="textarea" :rows="3" v-model="projectmemoedit" placeholder="请输入"></Input>
        </div>
        <div class="createby-createdate">
          <div></div>
          <div>
            <span v-show="!item.isedit" @click="editProjectMemo(item)" class="edit-delete-save">编辑</span>
            <span v-show="!item.isedit" @click="deleteProjectMemo(item)" class="edit-delete-save">删除</span>
            <span v-show="item.isedit" @click="saveeditProjectMemo(item)" class="edit-delete-save">保存</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Test2',
  components: {},
  data () {
    return {
      content: ''
    }
  },
  computed: {

  },
  created () {
  },
  mounted () {
  },
  watch: {
  }
}
</script>

<style scoped>

</style>
